VPATH = core:tools:bin:objs:lib:include

efs: libefs.a efs.c efs_ram.h efs.h
	gcc -I core -I include -o bin/efs tools/efs.c lib/libefs.a

libefs.a: efs_core.o
	ar rcs lib/libefs.a objs/efs_core.o

efs_core.o: efs_core.c efs_core.h
	gcc -c -I core -I include  -o objs/efs_core.o core/efs_core.c

clean: 
	rm -f objs/*
	rm -f lib/*
	rm -f bin/*
